local qunxian3__baishoukaiduo_longjuan = fk.CreateSkill {

  name = "qunxian3__baishoukaiduo_longjuan",

  tags = { Skill.Compulsory, },

}

Fk:loadTranslationTable {
  ["qunxian3__baishoukaiduo_longjuan"] = "龙卷",
  [":qunxian3__baishoukaiduo_longjuan"] = [[锁定技，一名其他角色体力值变动后。你令该角色下一张牌指定的目标随机或无效。]],
  ["@qunxian3__baishoukaiduo_longjuan"] = "龙卷",
  ["$qunxian3__baishoukaiduo_longjuan"] = "龙卷",
}

qunxian3__baishoukaiduo_longjuan:addEffect(fk.HpChanged, {
  anim_type = "offensive",
  can_trigger = function(self, event, target, player, data)
    return target ~= player and player:hasSkill(qunxian3__baishoukaiduo_longjuan.name)
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    room:addPlayerMark(target, "@qunxian3__baishoukaiduo_longjuan", 1)
  end
})

qunxian3__baishoukaiduo_longjuan:addEffect(fk.TargetSpecified, {
  anim_type = "offensive",
  can_trigger = function(self, event, target, player, data)
    return target:getMark("@qunxian3__baishoukaiduo_longjuan") > 0 and
        player:hasSkill("qunxian3__baishoukaiduo_longjuan")
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    local num = math.random(2)
    if num == 1 then
      data.to = table.random(room.alive_players, 1)
    else
      data.nullified = true
    end
    room:removePlayerMark(target, "@qunxian3__baishoukaiduo_longjuan")
  end
})



return qunxian3__baishoukaiduo_longjuan
